﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            //            定义一个员工类，存放用户的工号、姓名和部门信息；定义两个构造函数，一个是无参；
            //一个有参构造函数，对类的属性进行初始化。
            Class1 CC = new Class1();
            CC.Number = 10086;
            CC.Name = "小鲤鱼";
            CC.department = "设计部";
            //CC.aa(10086, "小鲤鱼", "设计部");
            Console.WriteLine("工号:{0} 姓名:{1} 部门:{2}", CC.Number,CC.Name,CC.department);
            Console.WriteLine();
            Class1 Ff = new Class1(10010,"赵子龙","板砖部");//无参
            Console.WriteLine("工号:{0} 姓名:{1} 部门:{2}", Ff.Number, Ff.Name, Ff.department);//有参

        }
    }
}
